home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000354_news@newsmaster….columbia.edu _Tue Sep 16 09:59:48 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA07741
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 16 Sep 1997 09:59:48 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA01605
  7.     for kermit.misc@watsun; Tue, 16 Sep 1997 09:59:47 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: read line?
  12. Date: 16 Sep 1997 13:59:46 GMT
  13. Organization: Columbia University
  14. Lines: 31
  15. Message-ID: <5vm3ci$mb2$1@apakabar.cc.columbia.edu>
  16. References: <5vgnsl$qi@sjx-ixn11.ix.netcom.com> <5vjkc7$7de$1@apakabar.cc.columbia.edu> <5vkpq6$rt2@sjx-ixn11.ix.netcom.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7677
  19.  
  20. In article <5vkpq6$rt2@sjx-ixn11.ix.netcom.com>,
  21. Jeff Lightfoot <jeffml@CHECK-SIG-FOR-ADDRESS.com> wrote:
  22. : According to Frank da Cruz <fdc@watsun.cc.columbia.edu>:
  23. : >In article <5vgnsl$qi@sjx-ixn11.ix.netcom.com>,
  24. : >Jeff Lightfoot <jeffml@CHECK-SIG-FOR-ADDRESS.com> wrote:
  25. : >: Ok, this has to be simple but...
  26. : >: At the K95 prompt I can open a file, read a line, echo that line, read
  27. : >: another ... everything works as expected.
  28. : >: But if I read a line, use while success { echo \m(line), read \m(line) }
  29. : >: I get the first line repeated for each of the lines in the file.
  30. : >: This is supposed to work, but for the life of me, it won't happen.
  31. : >: 
  32. : >Syntax problem.  \m(xxx) is used to retrieve the value of xxx, and so is
  33. : >not used in READ, DEFINE, ASSIGN, etc:
  34. : Ahhh.  Chapter 18, pg. 409 in Using C-Kermit 2nd Edition, gives the example
  35. : I used.
  36. Oh no, another mistake.  It should read:
  37.  
  38.   read line
  39.   while success { echo \m(line), read line }
  40.  
  41. : This brings up a point.  Should my K-95 have come with an addendum that
  42. : shows mistakes in the print version?
  43. :
  44. You'll find it at the end of the CKERMIT2.UPD file, in the Errata & Corrigenda
  45. section.  And this one will be added there in the next release.  Thanks for
  46. spotting it.
  47.  
  48. - Frank